﻿#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int arr[10] = { 0,20,9,0,4,6,8,5,66,2 };
	int max = arr[0];
	for (int i = 0; i < 10; i++)
	{
		if (arr[i] < arr[i+1])
		{
			max = arr[i+1];
		}
	}
	printf("%d", max);
	return 0;
}